/**
 * 
 */



const {ccclass, property} = cc._decorator;

@ccclass
export default class Blood extends cc.Component {

    // onLoad () {}

    start () {
        let ani = cc.find('sp', this.node).getComponent(cc.Animation)
        ani.play()
        ani.on('finished', ()=>{
            this.node.removeFromParent(true)
        }, this)
    }

}
